/**
 * AnalyzeErrorsBase.java
 *
 * Copyright (c) Viorel Tacliciu 2009. All Rights Reserved.
 *
 * This source file may not be copied, modified or redistributed,
 * in whole or in part, in any form or for any reason, without the express
 * written consent of Viorel Tacliciu. 
 **/
package ro.prjmanager.database;

import ro.prjmanager.dao.SynchDao;
import ro.prjmanager.database.model.Table;
import ro.prjmanager.template.TemplateReader;
import ro.prjmanager.template.form.backend.BusinessServiceForm;
import ro.prjmanager.template.form.commons.ModelForm;

import java.util.List;

public class Test {

     public static void main(String[] args) {
        DataBaseReader dbr= DataBaseReader.getInstance();
        String[] strs=new String[]{
                "AC_CASE_EXT"

        };
         

//        Table table=dbr.loadTable("components",false);
         SynchDao synchDao=new SynchDao();

//         List<String> list=synchDao.getAllTableFromSchema(1);


        for(String tableName:strs){
        Table table=dbr.loadTable(tableName,false);


        ModelForm modelForm=new ModelForm(table);
        TemplateReader.generateClassFile(modelForm);

       /* DAOForm daoForm=new DAOForm(table);
        TemplateReader.generateClassFile(daoForm);*/

       /* DAOImplForm daoImplForm=new DAOImplForm(table);
        TemplateReader.generateClassFile(daoImplForm);*/

      /*  BusinessServiceForm businessServiceForm=new BusinessServiceForm(table);
        TemplateReader.generateClassFile(businessServiceForm);
*/
        /*BusinessServiceLocalForm businessServiceLocalForm=new BusinessServiceLocalForm(table);
        TemplateReader.generateClassFile(businessServiceLocalForm);

        BusinessServiceRemoteForm businessServiceRemoteForm=new BusinessServiceRemoteForm(table);
        TemplateReader.generateClassFile(businessServiceRemoteForm);*/


        }

    }
}
